import java.awt.*;
import java.awt.image.BufferedImage;

// 基地类
public class Base extends GameObject {
    private BufferedImage baseImage;
    
    public Base(int x, int y, int width, int height) {
        super(x, y, width, height);
        baseImage = ImageManager.getImage("base.jpg");
    }
    
    public void update() {
        // 基地不需要更新
    }
    
    public void draw(Graphics g) {
        if (baseImage != null) {
            g.drawImage(baseImage, x, y, width, height, null);
        } else {
            // 如果没有图片，使用颜色代替
            g.setColor(Color.BLUE);
            g.fillRect(x, y, width, height);
        }
    }
}
